<?php /* Smarty version Smarty-3.1.12, created on 2013-04-25 05:45:03
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/prototypes/creditBasedName.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1206508383517856de16a751-91482773%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ece36afdca26e62c11765ce0604edfcb992d6583' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/prototypes/creditBasedName.tpl',
      1 => 1366861499,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1206508383517856de16a751-91482773',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_517856de1efde0_01634698',
  'variables' => 
  array (
    'creditValue' => 0,
    'name' => 0,
    'truncateValue' => 0,
    'steamID' => 0,
    'titleName' => 0,
    'textClass' => 0,
    'titleText' => 0,
    'iconClass' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_517856de1efde0_01634698')) {function content_517856de1efde0_01634698($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include '/www/htdocs/w00fc40b/dota2league/Smarty/plugins/modifier.truncate.php';
?><style type="text/css">
.text-bronze{
color: peru;
text-shadow: 1px 1px 2px #999;
}
.text-silver{
color: silver;
text-shadow: 1px 1px 2px #666;
}
.text-gold{
color: gold;
text-shadow: 1px 1px 2px #666;
}

</style>

<?php if ($_smarty_tpl->tpl_vars['creditValue']->value<0){?>
	<?php $_smarty_tpl->tpl_vars["textClass"] = new Smarty_variable('', null, 0);?>
<?php }elseif($_smarty_tpl->tpl_vars['creditValue']->value>=0&&$_smarty_tpl->tpl_vars['creditValue']->value<@BRONZECREDITBORDER){?>
	<?php $_smarty_tpl->tpl_vars["textClass"] = new Smarty_variable('', null, 0);?>
	<?php $_smarty_tpl->tpl_vars["creditValue"] = new Smarty_variable('', null, 0);?>
<?php }elseif($_smarty_tpl->tpl_vars['creditValue']->value>=@BRONZECREDITBORDER&&$_smarty_tpl->tpl_vars['creditValue']->value<@SILVERCREDITBORDER){?>
	<?php $_smarty_tpl->tpl_vars["textClass"] = new Smarty_variable("text-bronze", null, 0);?>
<?php }elseif($_smarty_tpl->tpl_vars['creditValue']->value>=@SILVERCREDITBORDER&&$_smarty_tpl->tpl_vars['creditValue']->value<@GOLDCREDITBORDER){?>
	<?php $_smarty_tpl->tpl_vars["textClass"] = new Smarty_variable("text-silver", null, 0);?>
<?php }elseif($_smarty_tpl->tpl_vars['creditValue']->value>=@GOLDCREDITBORDER){?>
	<?php $_smarty_tpl->tpl_vars["textClass"] = new Smarty_variable("text-gold", null, 0);?>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['creditValue']->value>=@BRONZECREDITBORDER){?>
	<?php $_smarty_tpl->tpl_vars["truncateValue"] = new Smarty_variable("10", null, 0);?>
	<?php $_smarty_tpl->tpl_vars["titleText"] = new Smarty_variable("earned Creditpoints: ".((string)$_smarty_tpl->tpl_vars['creditValue']->value), null, 0);?>
	<?php $_smarty_tpl->tpl_vars["iconClass"] = new Smarty_variable("icon-thumbs-up", null, 0);?>
<?php }else{ ?>
	<?php $_smarty_tpl->tpl_vars["truncateValue"] = new Smarty_variable("13", null, 0);?>
	<?php $_smarty_tpl->tpl_vars["iconClass"] = new Smarty_variable('', null, 0);?>
<?php }?>

<?php if (strlen($_smarty_tpl->tpl_vars['name']->value)>=$_smarty_tpl->tpl_vars['truncateValue']->value){?>
	<?php $_smarty_tpl->tpl_vars["titleName"] = new Smarty_variable($_smarty_tpl->tpl_vars['name']->value, null, 0);?>
<?php }else{ ?>
	<?php $_smarty_tpl->tpl_vars["titleName"] = new Smarty_variable('', null, 0);?>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['steamID']->value==$_SESSION['user']['steamID']){?>
<span class="t" title="<?php echo $_smarty_tpl->tpl_vars['titleName']->value;?>
"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['name']->value,$_smarty_tpl->tpl_vars['truncateValue']->value,"...",true);?>
</span>
<span class="t <?php echo $_smarty_tpl->tpl_vars['textClass']->value;?>
" title="<?php echo $_smarty_tpl->tpl_vars['titleText']->value;?>
"><i class="<?php echo $_smarty_tpl->tpl_vars['iconClass']->value;?>
"></i></span>
<?php }?><?php }} ?>